﻿@section header
{
    <link href="~/Themes/RongJi/Style/base/css/shoppingCart.css" rel="stylesheet">
}
@using Kevin.Shop.Business.Service.Entity.Helper
@model  RiderShop.Mobile.Modle.Purchase.OrderCompletedModel
<div id="wizard">
    <ul class="anchor">
        <li id="step-1">
            <a rel="1" class="done">Step 1 查看我的购物车</a>
        </li>
        <li id="step-2">
            <a rel="2" class="done">Step 2 填写核对订单信息</a>
        </li>
        <li id="step-3">
            <a rel="3" class="done">Step 3 购买成功</a>
        </li>
    </ul>
    <div class="shoppingCartWrapper">
        <span class="icon de"></span>
        <h2 class="StepTitle">成功提交订单</h2>
        <div class="orderSuccess">
            <dl>
                <dt><i class="fa fa-smile-o green"></i></dt>
                @if (!Model.ArrivePay)
                {
                    <!--情况1：在线支付-->
                    <dd id="ArrivePay1">
                        <p class="shouldPay">应付金额：<span class="orange">￥ @Model.OrderPayAmount</span></p>
                        <h3 class="green">请点击图标，选择支付方式 <i class="fa fa-caret-down"></i></h3>
                        <p class="payWay">
                            @*<a href="/Purchase/Payment?orderId=@Model.OrderNumber&paymentType=1" target="_blank">
                                    <img border="0" alt="银联支付" src="/Themes/RongJi/Style/base/imgs/bankicon/unionpay.gif">
                                </a>*@
                            <a href="/Purchase/Payment?orderNumber=@Model.OrderNumber&paymentType=0" target="_blank">
                                <img border="0" alt="支付宝" src="/Themes/RongJi/Style/base/imgs/alipay/alipay.gif">
                            </a>
                        </p>
                    </dd>
                }
                else
                {
                    <!--情况2：货到付款-->
                    <dd id="ArrivePay2">
                        <p class="shouldPay">应付金额：<span class="orange">￥ @Model.OrderPayAmount</span></p>
                        <p class="payWay">付款方式：货到付款</p>
                    </dd>
                }

                <dd id="NoPay" style="display:none">
                    <h3 class="green">您已用其他方式完成付款，我们会及时安排发货。</h3>
                </dd>
                <dd>
                    <p>
                        @if (!Model.ArrivePay)
                        {
                            <span>支付：为了您及时收到商品，在线付款订单请尽快付款。我们将保留您的订单48小时，如48小时后仍没有收到您的付款，系统将自动取消此订单。</span>
                        }
                        else
                        {
                            <span>支付：您选择了货到付款，我们将尽快为您发货。</span>
                        }
                    </p>
                </dd>
                <dd>
                    <p>
                        <span>配送：如果订单的商品分布在我们多个仓库，我们将会对订单进行拆分，给您造成不便，敬请谅解。</span>
                    </p>
                </dd>
                <dd class="btnLine">
                    <a href="/" class="btn_redB"><i class="fa fa-caret-left"></i> <strong>继续逛一逛</strong></a>
                    <a href="/MyAccount/OrderList?orderType=0" class="btn_grayB"><strong>查看我的订单</strong> <i class="fa fa-caret-right"></i></a>
                </dd>
            </dl>
        </div>

    </div>
</div>

@if (Model.IsPayCompleted)
{
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            window.location = "PaymentCompleted" + "?orderNumber=" + @Model.OrderNumber;
        });
    </script>
}